<div class="bjui-pageHeader">
  <form id="pagerForm" data-toggle="ajaxsearch" action="{:U('index')}" method="post">
    <div class="bjui-searchBar">
      <div class="alert alert-info search-inline"><i class="fa fa-info-circle"></i> 双击行可编辑</div>
	  <a <php>echo display(CONTROLLER_NAME.'/add');</php> href="{:U('add')}" class="btn btn-green" data-toggle="dialog" data-width="800" data-height="300" data-id="dialog-normal" data-mask="true" data-title="{$arr.title}-编辑">添加</a>
      <div class="pull-right" <php>echo display(CONTROLLER_NAME.'/delMultiRow');</php>>
        <div class="btn-group">
          <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">批量操作<span class="caret"></span></button>
          <ul class="dropdown-menu right" role="menu">
			<li><a href="{:U('delMultiRow')}/colorIds/{#bjui-selected}" data-toggle="doajax" data-confirm-msg="确定要删除选定的品牌吗？">删除选中</a></li>
          </ul>
        </div>
      </div>
    </div>
  </form>
</div>
<div class="bjui-pageContent tableContent">
  <form action="{:U('createOrder')}" class="pageForm" data-toggle="validate" method="post">
    <table class="table table-bordered table-hover table-striped table-top" data-toggle="tabledit" data-initnum="0" data-action="{:U('update')}" data-single-noindex="true" data-selected-multi="true">
      <thead>
        <tr data-idname="list[#index#][id]">
		  <th title="No." width="100"><input type="text"  class="no" data-rule="required" readonly="ture" ></th>
          <th title="编号" style="display: none;"><input type="hidden" name="list[#index#][id]"></th>
          <th title="颜色名称"><input type="text" name="list[#index#][color_name]"></th>
          <th title="颜色图"><input type="text" name="list[#index#][color_code]"  data-toggle="colorpicker" data-bgcolor="true" size="1" readonly></th>
          <th title="颜色代码"><input type="text" name="list[#index#][color_num]"></th>
          <th title="添加时间"><input type="text" name="list[#index#][create_time]" readonly="ture"></th>
          <th> 操作 </th>
        </tr>
      </thead>
      <tbody>
        <notempty name="_list">
		<volist name="_list" id="vo">
        <tr data-id="{$vo.id}">
		  <td data-id-val="{$vo.id}">{$vo.id}</td>
          <!-- 编号 -->
          <td style="display: none;">{$vo.id}</td>
          <!-- 颜色名称 -->
          <td>{$vo.color_name}</td>
          <!-- 颜色图 -->
          <td style="background-color:{$vo.color_code}">{$vo.color_code}</td>
          <!-- 电话 -->
          <td>{$vo.color_num}</td>
          <!-- 颜色代码 -->
          <td>{$vo.create_time|time_format}</td>
          <!-- 添加时间 -->
          <td data-noedit="true"><button <php>echo display(CONTROLLER_NAME.'/update');</php>  type="button" class="btn-green" data-toggle="doedit">编辑</button>
          <a  <php>echo display(CONTROLLER_NAME.'/remove');</php> href="{:U('remove?id='.$vo['id'])}" class="btn btn-red row-del" data-confirm-msg="确定要删除该行信息吗？">删</a>
		  </td>
        </tr>
		</volist>
		</notempty>
      </tbody>
    </table>
  </form>
</div>
<div class="bjui-pageFooter">
  <div class="pages"><span>每页&nbsp;</span>
    <div class="selectPagesize">
      <select data-toggle="selectpicker" data-toggle-change="changepagesize">
        <option value="{$pageSize}">{$pageSize}</option>
        <option value="{$pageSize*3}">{$pageSize*3}</option>
        <option value="{$pageSize*6}">{$pageSize*6}</option>
        <option value="{$pageSize*12}">{$pageSize*12}</option>
        <option value="{$pageSize*15}">{$pageSize*15}</option>
      </select>
    </div>
    <span>&nbsp;条，共 {$total} 条</span></div>
  <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}"
         data-page-current="{$pageCurrent}"></div>
</div>
